<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Ananas Library: Класс aDatabase</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Создано системой Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Титульная&nbsp;страница</span></a></li>
      <li class="current"><a href="annotated.html"><span>Классы</span></a></li>
      <li><a href="files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li><a href="hierarchy.html"><span>Иерархия&nbsp;классов</span></a></li>
      <li><a href="functions.html"><span>Члены&nbsp;классов</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Класс aDatabase</h1><!-- doxytag: class="aDatabase" -->Класс для работы с СУБД. Ananas Data Abstraction Layer. Наследует QObject.  
<a href="#_details">Подробнее...</a>
<p>
<code>#include &lt;<a class="el" href="adatabase_8h-source.html">adatabase.h</a>&gt;</code>
<p>

<p>
<a href="classaDatabase-members.html">Полный список членов класса</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Открытые типы</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf">dbServer</a> { <br>
&nbsp;&nbsp;<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acfee7018e6e2183ebebae54f2fe81119c4">unknown</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acfa607e00e5c2386f9acc01e411a0648f7">mysql</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf0602fcf93579fa8d14a377f82a2b1dad">postgresql</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf1bac8b5dc8f97566683cca9d16231bc5">odbc</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acfc5e7339d0fc4442eccad9a19cd26ecae">oracle</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf650fe2c73d88cc3c399692cf8377aaae">mssql</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf6639d371746aa70fb354091605c2f704">sybase</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acfee7018e6e2183ebebae54f2fe81119c4">unknown</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acfa607e00e5c2386f9acc01e411a0648f7">mysql</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf0602fcf93579fa8d14a377f82a2b1dad">postgresql</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf1bac8b5dc8f97566683cca9d16231bc5">odbc</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acfc5e7339d0fc4442eccad9a19cd26ecae">oracle</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf650fe2c73d88cc3c399692cf8377aaae">mssql</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf6639d371746aa70fb354091605c2f704">sybase</a>
<br>
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Перечисление поддерживаемых типов баз данных. По состоянию на 20070630 реализована поддержка для mysql и postgresql.  <a href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf">Подробнее...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf">dbServer</a> { <br>
&nbsp;&nbsp;<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acfee7018e6e2183ebebae54f2fe81119c4">unknown</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acfa607e00e5c2386f9acc01e411a0648f7">mysql</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf0602fcf93579fa8d14a377f82a2b1dad">postgresql</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf1bac8b5dc8f97566683cca9d16231bc5">odbc</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acfc5e7339d0fc4442eccad9a19cd26ecae">oracle</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf650fe2c73d88cc3c399692cf8377aaae">mssql</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf6639d371746aa70fb354091605c2f704">sybase</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acfee7018e6e2183ebebae54f2fe81119c4">unknown</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acfa607e00e5c2386f9acc01e411a0648f7">mysql</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf0602fcf93579fa8d14a377f82a2b1dad">postgresql</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf1bac8b5dc8f97566683cca9d16231bc5">odbc</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acfc5e7339d0fc4442eccad9a19cd26ecae">oracle</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf650fe2c73d88cc3c399692cf8377aaae">mssql</a>, 
<a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf6639d371746aa70fb354091605c2f704">sybase</a>
<br>
 }</td></tr>

<tr><td colspan="2"><br><h2>Открытые члены</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#5aaf491a9225b1c86dbb6a44616b52c6">aDatabase</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#5a8fc01424c4527339d9908dc2b9b46a">~aDatabase</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#402f510bb1a2f6700cca4bff4038241f">init</a> (<a class="el" href="classaCfgRc.html">aCfgRc</a> *rc, const QString &amp;dbname=QString::null)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Создает базу данных на SQL сервере.  <a href="#402f510bb1a2f6700cca4bff4038241f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#9f949e6c3d23904fa83e8bb5ce260dd6">init</a> (const QString &amp;rcname, const QString &amp;dbname=QString::null)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates database on SQL server. This is overloaded method, provided for convenience.  <a href="#9f949e6c3d23904fa83e8bb5ce260dd6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#d3a6cb929a446a94c01d1eb916cbff5f">prepareDatabaseConnect</a> (<a class="el" href="classaCfgRc.html">aCfgRc</a> *rc)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Инициализирует драйвер sql соединения.  <a href="#d3a6cb929a446a94c01d1eb916cbff5f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#349f888631658988c8d14cdf9da49b84">done</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QSqlDatabase *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#519dd81978ac3ae2bf6d3bd78f906857">db</a> (const QString &amp;dbname=QString::null)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Возвращает ссылку на соединение с базой данных.  <a href="#519dd81978ac3ae2bf6d3bd78f906857"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#9c5939f85c3f2a9ed9317a62756157d0">checkStructure</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#388dcf1fdde5894837a7347983efa460">create</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b12a3cb475d29be7255c9f1ee3989a4e"></a><!-- doxytag: member="aDatabase::drop" ref="b12a3cb475d29be7255c9f1ee3989a4e" args="(const QString &amp;)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>drop</b> (const QString &amp;)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#ad12a828cce93f05ce1d196e6e014405">update</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">Q_ULLONG&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#f12d85799764733394802eea55f8095f">uid</a> (int otype)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#0a537879f7c25da86447c9c351a1f127">uidType</a> (Q_ULLONG uid)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classaDataTable.html">aDataTable</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#ec81c17eabb865b8f008cc7fdb7d8cb6">table</a> (const QString &amp;name=QString::null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#f9e9961fa54f1a2ab2af12b91214494f">tableExists</a> (const QString &amp;name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#95830f0d5560055b291a33b47af87d34">markDeleted</a> (Q_ULLONG uid)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#88e04b3a0adc3aaa17cd160537eefe1c">deleteMarked</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#55ae2b25d5fcee79947c55fa15eeb19a">driverName</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3c6181ffff9e5bf9ea1c434051a79232"></a><!-- doxytag: member="aDatabase::exchangeDataSystables" ref="3c6181ffff9e5bf9ea1c434051a79232" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataSystables</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1173e068125a783a5055559dce5d5e7f"></a><!-- doxytag: member="aDatabase::exchangeDataCatalogues" ref="1173e068125a783a5055559dce5d5e7f" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataCatalogues</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="73ccbb4a184712361f56726303c7a919"></a><!-- doxytag: member="aDatabase::exchangeDataDocuments" ref="73ccbb4a184712361f56726303c7a919" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataDocuments</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f312737eae096afa9c9d4299a6fccb49"></a><!-- doxytag: member="aDatabase::exchangeDataJournals" ref="f312737eae096afa9c9d4299a6fccb49" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataJournals</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="66ddc1f8e5b0cebcc0052e156954e24b"></a><!-- doxytag: member="aDatabase::exchangeDataInfoRegisters" ref="66ddc1f8e5b0cebcc0052e156954e24b" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataInfoRegisters</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8394ec4e9c70d677483cd4d94da0b0d2"></a><!-- doxytag: member="aDatabase::exchangeDataAccumulationRegisters" ref="8394ec4e9c70d677483cd4d94da0b0d2" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataAccumulationRegisters</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a60561913388f7fc676aa76d68abce5a"></a><!-- doxytag: member="aDatabase::exchangeDataUniques" ref="a60561913388f7fc676aa76d68abce5a" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataUniques</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="402f510bb1a2f6700cca4bff4038241f"></a><!-- doxytag: member="aDatabase::init" ref="402f510bb1a2f6700cca4bff4038241f" args="(aCfgRc *rc, const QString &amp;dbname=QString::null)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>init</b> (<a class="el" href="classaCfgRc.html">aCfgRc</a> *rc, const QString &amp;dbname=QString::null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9f949e6c3d23904fa83e8bb5ce260dd6"></a><!-- doxytag: member="aDatabase::init" ref="9f949e6c3d23904fa83e8bb5ce260dd6" args="(const QString &amp;rcname, const QString &amp;dbname=QString::null)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>init</b> (const QString &amp;rcname, const QString &amp;dbname=QString::null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="349f888631658988c8d14cdf9da49b84"></a><!-- doxytag: member="aDatabase::done" ref="349f888631658988c8d14cdf9da49b84" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>done</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5e3dde27425c6113ebdca5d422260392"></a><!-- doxytag: member="aDatabase::db" ref="5e3dde27425c6113ebdca5d422260392" args="(const QString &amp;dbname=QString::null)" -->
QSqlDatabase *&nbsp;</td><td class="memItemRight" valign="bottom"><b>db</b> (const QString &amp;dbname=QString::null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9c5939f85c3f2a9ed9317a62756157d0"></a><!-- doxytag: member="aDatabase::checkStructure" ref="9c5939f85c3f2a9ed9317a62756157d0" args="()" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>checkStructure</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="388dcf1fdde5894837a7347983efa460"></a><!-- doxytag: member="aDatabase::create" ref="388dcf1fdde5894837a7347983efa460" args="()" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>create</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b12a3cb475d29be7255c9f1ee3989a4e"></a><!-- doxytag: member="aDatabase::drop" ref="b12a3cb475d29be7255c9f1ee3989a4e" args="(const QString &amp;)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>drop</b> (const QString &amp;)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ad12a828cce93f05ce1d196e6e014405"></a><!-- doxytag: member="aDatabase::update" ref="ad12a828cce93f05ce1d196e6e014405" args="()" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>update</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f12d85799764733394802eea55f8095f"></a><!-- doxytag: member="aDatabase::uid" ref="f12d85799764733394802eea55f8095f" args="(int otype)" -->
Q_ULLONG&nbsp;</td><td class="memItemRight" valign="bottom"><b>uid</b> (int otype)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a537879f7c25da86447c9c351a1f127"></a><!-- doxytag: member="aDatabase::uidType" ref="0a537879f7c25da86447c9c351a1f127" args="(Q_ULLONG uid)" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>uidType</b> (Q_ULLONG uid)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="738c6e03eea9d79e366ed653d5e17440"></a><!-- doxytag: member="aDatabase::table" ref="738c6e03eea9d79e366ed653d5e17440" args="(const QString &amp;name=QString::null)" -->
<a class="el" href="classaDataTable.html">aDataTable</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>table</b> (const QString &amp;name=QString::null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f9e9961fa54f1a2ab2af12b91214494f"></a><!-- doxytag: member="aDatabase::tableExists" ref="f9e9961fa54f1a2ab2af12b91214494f" args="(const QString &amp;name)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>tableExists</b> (const QString &amp;name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="95830f0d5560055b291a33b47af87d34"></a><!-- doxytag: member="aDatabase::markDeleted" ref="95830f0d5560055b291a33b47af87d34" args="(Q_ULLONG uid)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>markDeleted</b> (Q_ULLONG uid)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="88e04b3a0adc3aaa17cd160537eefe1c"></a><!-- doxytag: member="aDatabase::deleteMarked" ref="88e04b3a0adc3aaa17cd160537eefe1c" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>deleteMarked</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="55ae2b25d5fcee79947c55fa15eeb19a"></a><!-- doxytag: member="aDatabase::driverName" ref="55ae2b25d5fcee79947c55fa15eeb19a" args="()" -->
QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>driverName</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3c6181ffff9e5bf9ea1c434051a79232"></a><!-- doxytag: member="aDatabase::exchangeDataSystables" ref="3c6181ffff9e5bf9ea1c434051a79232" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataSystables</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1173e068125a783a5055559dce5d5e7f"></a><!-- doxytag: member="aDatabase::exchangeDataCatalogues" ref="1173e068125a783a5055559dce5d5e7f" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataCatalogues</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="73ccbb4a184712361f56726303c7a919"></a><!-- doxytag: member="aDatabase::exchangeDataDocuments" ref="73ccbb4a184712361f56726303c7a919" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataDocuments</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f312737eae096afa9c9d4299a6fccb49"></a><!-- doxytag: member="aDatabase::exchangeDataJournals" ref="f312737eae096afa9c9d4299a6fccb49" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataJournals</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="66ddc1f8e5b0cebcc0052e156954e24b"></a><!-- doxytag: member="aDatabase::exchangeDataInfoRegisters" ref="66ddc1f8e5b0cebcc0052e156954e24b" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataInfoRegisters</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8394ec4e9c70d677483cd4d94da0b0d2"></a><!-- doxytag: member="aDatabase::exchangeDataAccumulationRegisters" ref="8394ec4e9c70d677483cd4d94da0b0d2" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataAccumulationRegisters</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a60561913388f7fc676aa76d68abce5a"></a><!-- doxytag: member="aDatabase::exchangeDataUniques" ref="a60561913388f7fc676aa76d68abce5a" args="(QDomDocument &amp;xml, bool import)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>exchangeDataUniques</b> (QDomDocument &amp;xml, bool import)</td></tr>

<tr><td colspan="2"><br><h2>Открытые статические члены</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aa33cb57b207be69ba5c3b61b377a58d"></a><!-- doxytag: member="aDatabase::supportedDriverList" ref="aa33cb57b207be69ba5c3b61b377a58d" args="()" -->
static QStringList&nbsp;</td><td class="memItemRight" valign="bottom"><b>supportedDriverList</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static QStringList&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#4d8c747db27bc4cf445363c2066f3a06">getUniqueIndices</a> (const QString &amp;flddef)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#bdfb897e092d8a473d828ec6edcb940b">tableDbName</a> (<a class="el" href="classaCfg.html">aCfg</a> &amp;md, aCfgItem context, long *tid)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#2921cadc121d341e8e0267890790d581">tableDbName</a> (<a class="el" href="classaCfg.html">aCfg</a> &amp;md, aCfgItem context)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cd77738f308d7aadbe763f40396fd2d5"></a><!-- doxytag: member="aDatabase::supportedDriverList" ref="cd77738f308d7aadbe763f40396fd2d5" args="()" -->
static QStringList&nbsp;</td><td class="memItemRight" valign="bottom"><b>supportedDriverList</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a9c0e7413df0d207047658762aeab5f"></a><!-- doxytag: member="aDatabase::getUniqueIndices" ref="0a9c0e7413df0d207047658762aeab5f" args="(const QString &amp;flddef)" -->
static QStringList&nbsp;</td><td class="memItemRight" valign="bottom"><b>getUniqueIndices</b> (const QString &amp;flddef)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a13930204ff7087a4ae0d1dfed5eeb0e"></a><!-- doxytag: member="aDatabase::tableDbName" ref="a13930204ff7087a4ae0d1dfed5eeb0e" args="(aCfg &amp;md, aCfgItem context, long *tid)" -->
static QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>tableDbName</b> (<a class="el" href="classaCfg.html">aCfg</a> &amp;md, aCfgItem context, long *tid)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="273475a7a5e0aba51ee10b2658d5abac"></a><!-- doxytag: member="aDatabase::tableDbName" ref="273475a7a5e0aba51ee10b2658d5abac" args="(aCfg &amp;md, aCfgItem context)" -->
static QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>tableDbName</b> (<a class="el" href="classaCfg.html">aCfg</a> &amp;md, aCfgItem context)</td></tr>

<tr><td colspan="2"><br><h2>Открытые атрибуты</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classaCfg.html">aCfg</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#2a8a58fee86d82ee580b326a8b07a642">cfg</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Объект для работы с метаданными бизнес схемы Ананаса.  <a href="#2a8a58fee86d82ee580b326a8b07a642"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QSqlDatabase *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaDatabase.html#2804e68252ad6e2d23a61e9ac26bf542">ddb</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Подробное описание</h2>
Класс для работы с СУБД. Ananas Data Abstraction Layer. Наследует QObject. 
<p>
Обеспечивает унифицированный программный интерфейс доступа к данным, независимый от используемой СУБД. Используется для работы с базой данных в контексте бизнес схемы. <hr><h2>Перечисления</h2>
<a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf"></a><!-- doxytag: member="aDatabase::dbServer" ref="64e4a15223f0cc0bc20bf833b9301acf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf">aDatabase::dbServer</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Перечисление поддерживаемых типов баз данных. По состоянию на 20070630 реализована поддержка для mysql и postgresql. 
<p>
<dl compact><dt><b>Элементы перечислений: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acfee7018e6e2183ebebae54f2fe81119c4"></a><!-- doxytag: member="unknown" ref="64e4a15223f0cc0bc20bf833b9301acfee7018e6e2183ebebae54f2fe81119c4" args="" -->unknown</em>&nbsp;</td><td>
Неизвестный драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acfa607e00e5c2386f9acc01e411a0648f7"></a><!-- doxytag: member="mysql" ref="64e4a15223f0cc0bc20bf833b9301acfa607e00e5c2386f9acc01e411a0648f7" args="" -->mysql</em>&nbsp;</td><td>
MySQl драйвер </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf0602fcf93579fa8d14a377f82a2b1dad"></a><!-- doxytag: member="postgresql" ref="64e4a15223f0cc0bc20bf833b9301acf0602fcf93579fa8d14a377f82a2b1dad" args="" -->postgresql</em>&nbsp;</td><td>
PostgreSQL драйвер </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf1bac8b5dc8f97566683cca9d16231bc5"></a><!-- doxytag: member="odbc" ref="64e4a15223f0cc0bc20bf833b9301acf1bac8b5dc8f97566683cca9d16231bc5" args="" -->odbc</em>&nbsp;</td><td>
ODBC драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acfc5e7339d0fc4442eccad9a19cd26ecae"></a><!-- doxytag: member="oracle" ref="64e4a15223f0cc0bc20bf833b9301acfc5e7339d0fc4442eccad9a19cd26ecae" args="" -->oracle</em>&nbsp;</td><td>
Oracle драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf650fe2c73d88cc3c399692cf8377aaae"></a><!-- doxytag: member="mssql" ref="64e4a15223f0cc0bc20bf833b9301acf650fe2c73d88cc3c399692cf8377aaae" args="" -->mssql</em>&nbsp;</td><td>
MSSQL драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf6639d371746aa70fb354091605c2f704"></a><!-- doxytag: member="sybase" ref="64e4a15223f0cc0bc20bf833b9301acf6639d371746aa70fb354091605c2f704" args="" -->sybase</em>&nbsp;</td><td>
Sybase драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acfee7018e6e2183ebebae54f2fe81119c4"></a><!-- doxytag: member="unknown" ref="64e4a15223f0cc0bc20bf833b9301acfee7018e6e2183ebebae54f2fe81119c4" args="" -->unknown</em>&nbsp;</td><td>
Неизвестный драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acfa607e00e5c2386f9acc01e411a0648f7"></a><!-- doxytag: member="mysql" ref="64e4a15223f0cc0bc20bf833b9301acfa607e00e5c2386f9acc01e411a0648f7" args="" -->mysql</em>&nbsp;</td><td>
MySQl драйвер </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf0602fcf93579fa8d14a377f82a2b1dad"></a><!-- doxytag: member="postgresql" ref="64e4a15223f0cc0bc20bf833b9301acf0602fcf93579fa8d14a377f82a2b1dad" args="" -->postgresql</em>&nbsp;</td><td>
PostgreSQL драйвер </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf1bac8b5dc8f97566683cca9d16231bc5"></a><!-- doxytag: member="odbc" ref="64e4a15223f0cc0bc20bf833b9301acf1bac8b5dc8f97566683cca9d16231bc5" args="" -->odbc</em>&nbsp;</td><td>
ODBC драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acfc5e7339d0fc4442eccad9a19cd26ecae"></a><!-- doxytag: member="oracle" ref="64e4a15223f0cc0bc20bf833b9301acfc5e7339d0fc4442eccad9a19cd26ecae" args="" -->oracle</em>&nbsp;</td><td>
Oracle драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf650fe2c73d88cc3c399692cf8377aaae"></a><!-- doxytag: member="mssql" ref="64e4a15223f0cc0bc20bf833b9301acf650fe2c73d88cc3c399692cf8377aaae" args="" -->mssql</em>&nbsp;</td><td>
MSSQL драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf6639d371746aa70fb354091605c2f704"></a><!-- doxytag: member="sybase" ref="64e4a15223f0cc0bc20bf833b9301acf6639d371746aa70fb354091605c2f704" args="" -->sybase</em>&nbsp;</td><td>
Sybase драйвер (не поддерживается) </td></tr>
</table>
</dl>

</div>
</div><p>
<a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf"></a><!-- doxytag: member="aDatabase::dbServer" ref="64e4a15223f0cc0bc20bf833b9301acf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classaDatabase.html#64e4a15223f0cc0bc20bf833b9301acf">aDatabase::dbServer</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
перечисление типов баз данных <dl compact><dt><b>Элементы перечислений: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acfee7018e6e2183ebebae54f2fe81119c4"></a><!-- doxytag: member="unknown" ref="64e4a15223f0cc0bc20bf833b9301acfee7018e6e2183ebebae54f2fe81119c4" args="" -->unknown</em>&nbsp;</td><td>
Неизвестный драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acfa607e00e5c2386f9acc01e411a0648f7"></a><!-- doxytag: member="mysql" ref="64e4a15223f0cc0bc20bf833b9301acfa607e00e5c2386f9acc01e411a0648f7" args="" -->mysql</em>&nbsp;</td><td>
MySQl драйвер </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf0602fcf93579fa8d14a377f82a2b1dad"></a><!-- doxytag: member="postgresql" ref="64e4a15223f0cc0bc20bf833b9301acf0602fcf93579fa8d14a377f82a2b1dad" args="" -->postgresql</em>&nbsp;</td><td>
PostgreSQL драйвер </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf1bac8b5dc8f97566683cca9d16231bc5"></a><!-- doxytag: member="odbc" ref="64e4a15223f0cc0bc20bf833b9301acf1bac8b5dc8f97566683cca9d16231bc5" args="" -->odbc</em>&nbsp;</td><td>
ODBC драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acfc5e7339d0fc4442eccad9a19cd26ecae"></a><!-- doxytag: member="oracle" ref="64e4a15223f0cc0bc20bf833b9301acfc5e7339d0fc4442eccad9a19cd26ecae" args="" -->oracle</em>&nbsp;</td><td>
Oracle драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf650fe2c73d88cc3c399692cf8377aaae"></a><!-- doxytag: member="mssql" ref="64e4a15223f0cc0bc20bf833b9301acf650fe2c73d88cc3c399692cf8377aaae" args="" -->mssql</em>&nbsp;</td><td>
MSSQL драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf6639d371746aa70fb354091605c2f704"></a><!-- doxytag: member="sybase" ref="64e4a15223f0cc0bc20bf833b9301acf6639d371746aa70fb354091605c2f704" args="" -->sybase</em>&nbsp;</td><td>
Sybase драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acfee7018e6e2183ebebae54f2fe81119c4"></a><!-- doxytag: member="unknown" ref="64e4a15223f0cc0bc20bf833b9301acfee7018e6e2183ebebae54f2fe81119c4" args="" -->unknown</em>&nbsp;</td><td>
Неизвестный драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acfa607e00e5c2386f9acc01e411a0648f7"></a><!-- doxytag: member="mysql" ref="64e4a15223f0cc0bc20bf833b9301acfa607e00e5c2386f9acc01e411a0648f7" args="" -->mysql</em>&nbsp;</td><td>
MySQl драйвер </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf0602fcf93579fa8d14a377f82a2b1dad"></a><!-- doxytag: member="postgresql" ref="64e4a15223f0cc0bc20bf833b9301acf0602fcf93579fa8d14a377f82a2b1dad" args="" -->postgresql</em>&nbsp;</td><td>
PostgreSQL драйвер </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf1bac8b5dc8f97566683cca9d16231bc5"></a><!-- doxytag: member="odbc" ref="64e4a15223f0cc0bc20bf833b9301acf1bac8b5dc8f97566683cca9d16231bc5" args="" -->odbc</em>&nbsp;</td><td>
ODBC драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acfc5e7339d0fc4442eccad9a19cd26ecae"></a><!-- doxytag: member="oracle" ref="64e4a15223f0cc0bc20bf833b9301acfc5e7339d0fc4442eccad9a19cd26ecae" args="" -->oracle</em>&nbsp;</td><td>
Oracle драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf650fe2c73d88cc3c399692cf8377aaae"></a><!-- doxytag: member="mssql" ref="64e4a15223f0cc0bc20bf833b9301acf650fe2c73d88cc3c399692cf8377aaae" args="" -->mssql</em>&nbsp;</td><td>
MSSQL драйвер (не поддерживается) </td></tr>
<tr><td valign="top"><em><a class="anchor" name="64e4a15223f0cc0bc20bf833b9301acf6639d371746aa70fb354091605c2f704"></a><!-- doxytag: member="sybase" ref="64e4a15223f0cc0bc20bf833b9301acf6639d371746aa70fb354091605c2f704" args="" -->sybase</em>&nbsp;</td><td>
Sybase драйвер (не поддерживается) </td></tr>
</table>
</dl>

</div>
</div><p>
<hr><h2>Конструктор(ы)</h2>
<a class="anchor" name="5aaf491a9225b1c86dbb6a44616b52c6"></a><!-- doxytag: member="aDatabase::aDatabase" ref="5aaf491a9225b1c86dbb6a44616b52c6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">aDatabase::aDatabase           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Конструктор без параметров. 
</div>
</div><p>
<a class="anchor" name="5a8fc01424c4527339d9908dc2b9b46a"></a><!-- doxytag: member="aDatabase::~aDatabase" ref="5a8fc01424c4527339d9908dc2b9b46a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">aDatabase::~aDatabase           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Деструктор. 
</div>
</div><p>
<hr><h2>Методы</h2>
<a class="anchor" name="402f510bb1a2f6700cca4bff4038241f"></a><!-- doxytag: member="aDatabase::init" ref="402f510bb1a2f6700cca4bff4038241f" args="(aCfgRc *rc, const QString &amp;dbname=QString::null)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool aDatabase::init           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classaCfgRc.html">aCfgRc</a> *&nbsp;</td>
          <td class="paramname"> <em>rc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>dbname</em> = <code>QString::null</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Создает базу данных на SQL сервере. 
<p>
Создает базу данных на SQL сервере, используя переданные параметры соединения с SQL сервером. <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rc</em>&nbsp;</td><td>(in) - ссылка на инициализированный объект, хранящий данные файла ресурсов, необходимые для установления соединения. Проще говоря, объект с параметрами соединения. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dbname</em>&nbsp;</td><td>(in) - не используется </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>frue, если не было ошибок</dd></dl>
<dl class="see" compact><dt><b>См. также:</b></dt><dd><a class="el" href="classaDatabase.html#9f949e6c3d23904fa83e8bb5ce260dd6" title="Creates database on SQL server. This is overloaded method, provided for convenience...">init( const QString &amp;rcname, const QString &amp;dbname )</a></dd></dl>
Создает базу данных на SQL сервере. Читает переданный файл ресурса и создает соединение с сервером баз данных. После этого создает базу данных с параметрами, заданными в файле ресурса.<p>
<dl class="see" compact><dt><b>См. также:</b></dt><dd><a class="el" href="classaDatabase.html#9f949e6c3d23904fa83e8bb5ce260dd6" title="Creates database on SQL server. This is overloaded method, provided for convenience...">init( const QString &amp;rcname, const QString &amp;dbname )</a> </dd></dl>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rc</em>&nbsp;</td><td>(in) - ссылка на файл ресурса </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dbname</em>&nbsp;</td><td>(in) - не используется </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd></dd></dl>

<p>Перекрестные ссылки <a class="el" href="adatabase_8cpp-source.html#l00096">driverName()</a>, <a class="el" href="adatabase_8cpp-source.html#l00235">prepareDatabaseConnect()</a>, <a class="el" href="alog_8cpp-source.html#l00058">aLog::print()</a> и <a class="el" href="acfgrc_8cpp-source.html#l00189">aCfgRc::value()</a>.</p>

<p>Используется в <a class="el" href="engine_8cpp-source.html#l00233">aEngine::init()</a> и <a class="el" href="adatabase_8cpp-source.html#l00148">init()</a>.</p>

</div>
</div><p>
<a class="anchor" name="9f949e6c3d23904fa83e8bb5ce260dd6"></a><!-- doxytag: member="aDatabase::init" ref="9f949e6c3d23904fa83e8bb5ce260dd6" args="(const QString &amp;rcname, const QString &amp;dbname=QString::null)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool aDatabase::init           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>rcname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>dbname</em> = <code>QString::null</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates database on SQL server. This is overloaded method, provided for convenience. 
<p>
/en <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rcname</em>&nbsp;</td><td>(in) - rc file name </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dbname</em>&nbsp;</td><td>(in) - not used </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>true, if no error /_en /ru Вспомогательный метод для создания базы данных на SQL сервере. Перегружет метод <a class="el" href="classaDatabase.html#402f510bb1a2f6700cca4bff4038241f" title="Создает базу данных на SQL сервере.">init( aCfgRc *rc, const QString &amp;dbname )</a> и использует его. </dd></dl>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rcname</em>&nbsp;</td><td>(in) - имя файла ресурсов, содержащего параметры соединения с базой данных. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dbname</em>&nbsp;</td><td>(in) - имя базы данных. (не используется, берется из файла ресурсов) </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>true, если файл ресурсов успешно прочитан, false - в противном случае. /_ru</dd></dl>
Перегружет метод <a class="el" href="classaDatabase.html#402f510bb1a2f6700cca4bff4038241f" title="Создает базу данных на SQL сервере.">init( aCfgRc *rc, const QString &amp;dbname )</a><p>
<dl class="see" compact><dt><b>См. также:</b></dt><dd><a class="el" href="classaDatabase.html#402f510bb1a2f6700cca4bff4038241f" title="Создает базу данных на SQL сервере.">init( aCfgRc *rc, const QString &amp;dbname )</a> </dd></dl>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rcname</em>&nbsp;</td><td>(in) - имя файла ресурса </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dbname</em>&nbsp;</td><td>(in) - имя базы данных </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>true, если ошибок не было </dd></dl>

<p>Перекрестные ссылки <a class="el" href="adatabase_8h-source.html#l00115">cfg</a>, <a class="el" href="adatabase_8cpp-source.html#l00180">init()</a>, <a class="el" href="acfg_8h-source.html#l00389">aCfg::rc</a> и <a class="el" href="acfg_8cpp-source.html#l00341">aCfg::readrc()</a>.</p>

</div>
</div><p>
<a class="anchor" name="d3a6cb929a446a94c01d1eb916cbff5f"></a><!-- doxytag: member="aDatabase::prepareDatabaseConnect" ref="d3a6cb929a446a94c01d1eb916cbff5f" args="(aCfgRc *rc)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool aDatabase::prepareDatabaseConnect           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classaCfgRc.html">aCfgRc</a> *&nbsp;</td>
          <td class="paramname"> <em>dbParams</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Инициализирует драйвер sql соединения. 
<p>
Для инициализации используются параметры из файла ресурсов бизнес схемы. <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dbParams</em>&nbsp;</td><td>- объект хранящий данные файла ресурсов. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>true, если драйвер успешно инициализирован. false, если возникла ошибка. </dd></dl>

<p>Перекрестные ссылки <a class="el" href="adatabase_8cpp-source.html#l00320">db()</a>, <a class="el" href="adatabase_8cpp-source.html#l00293">done()</a>, <a class="el" href="adatabase_8cpp-source.html#l00096">driverName()</a>, <a class="el" href="alog_8cpp-source.html#l00058">aLog::print()</a> и <a class="el" href="acfgrc_8cpp-source.html#l00189">aCfgRc::value()</a>.</p>

<p>Используется в <a class="el" href="adatabase_8cpp-source.html#l00180">init()</a>.</p>

</div>
</div><p>
<a class="anchor" name="349f888631658988c8d14cdf9da49b84"></a><!-- doxytag: member="aDatabase::done" ref="349f888631658988c8d14cdf9da49b84" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void aDatabase::done           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Закрывает соединение с базой данных и освобождает все занятые ресурсы. 
<p>Перекрестные ссылки <a class="el" href="adatabase_8cpp-source.html#l00320">db()</a>.</p>

<p>Используется в <a class="el" href="adatabase_8cpp-source.html#l00235">prepareDatabaseConnect()</a>.</p>

</div>
</div><p>
<a class="anchor" name="519dd81978ac3ae2bf6d3bd78f906857"></a><!-- doxytag: member="aDatabase::db" ref="519dd81978ac3ae2bf6d3bd78f906857" args="(const QString &amp;dbname=QString::null)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSqlDatabase * aDatabase::db           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>dbname</em> = <code>QString::null</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Возвращает ссылку на соединение с базой данных. 
<p>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dbname</em>&nbsp;</td><td>(in) - имя базы данных </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>соединение с базой данных. Возвращаемый объект удалять не следует.</dd></dl>
Возвращает ссылку на соединение с базой данных.<p>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dbname</em>&nbsp;</td><td>(in) - имя базы данных. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>соединение с базой данных </dd></dl>

<p>Используется в <a class="el" href="airegister_8cpp-source.html#l00317">aIRegister::deleteDocument()</a>, <a class="el" href="aaregister_8cpp-source.html#l00235">aARegister::deleteDocument()</a>, <a class="el" href="adatabase_8cpp-source.html#l01877">deleteMarked()</a>, <a class="el" href="airegister_8cpp-source.html#l00361">aIRegister::deleteTable()</a>, <a class="el" href="adatabase_8cpp-source.html#l00293">done()</a>, <a class="el" href="adatabase_8cpp-source.html#l00096">driverName()</a>, <a class="el" href="adocjournal_8cpp-source.html#l00734">aDocJournal::getPrefix()</a>, <a class="el" href="aaregister_8cpp-source.html#l00320">aARegister::getSaldo()</a>, <a class="el" href="aaregister_8cpp-source.html#l00369">aARegister::getSaldoByManyDimensions()</a>, <a class="el" href="aextsql_8cpp-source.html#l00056">aExtSQL::init()</a>, <a class="el" href="aaregister_8cpp-source.html#l00501">aARegister::insert_values()</a>, <a class="el" href="adocument_8cpp-source.html#l01371">aDocument::IsSignedIn()</a>, <a class="el" href="adatabase_8cpp-source.html#l01862">markDeleted()</a>, <a class="el" href="adocjournal_8cpp-source.html#l00380">aDocJournal::nextNumber()</a>, <a class="el" href="adatabase_8cpp-source.html#l00235">prepareDatabaseConnect()</a>, <a class="el" href="aaregister_8cpp-source.html#l00460">aARegister::recalculate_saldo()</a>, <a class="el" href="acatalogue_8cpp-source.html#l01249">aCatGroup::SetParent()</a>, <a class="el" href="adatabase_8cpp-source.html#l00605">tableExists()</a>, <a class="el" href="adocument_8cpp-source.html#l00369">aDocument::TableNewLine()</a>, <a class="el" href="adatabase_8cpp-source.html#l00539">uid()</a>, <a class="el" href="adatabase_8cpp-source.html#l00583">uidType()</a> и <a class="el" href="aaregister_8cpp-source.html#l00543">aARegister::update_values()</a>.</p>

</div>
</div><p>
<a class="anchor" name="9c5939f85c3f2a9ed9317a62756157d0"></a><!-- doxytag: member="aDatabase::checkStructure" ref="9c5939f85c3f2a9ed9317a62756157d0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool aDatabase::checkStructure           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
проверяет структуру базы данных. Не реализована.<p>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>true, если база данных коррестна</dd></dl>
проверяет структуру базы данных. Не реализована.<p>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>true, если база данных коррестна </dd></dl>

</div>
</div><p>
<a class="anchor" name="388dcf1fdde5894837a7347983efa460"></a><!-- doxytag: member="aDatabase::create" ref="388dcf1fdde5894837a7347983efa460" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool aDatabase::create           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Вспомогательный метод. Создает новую базу данных.<p>
<dl class="see" compact><dt><b>См. также:</b></dt><dd>createdb() </dd></dl>

</div>
</div><p>
<a class="anchor" name="ad12a828cce93f05ce1d196e6e014405"></a><!-- doxytag: member="aDatabase::update" ref="ad12a828cce93f05ce1d196e6e014405" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool aDatabase::update           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Вспомогательный метод. Обновляет структуру базы данных.<p>
<dl class="see" compact><dt><b>См. также:</b></dt><dd>createdb() </dd></dl>

</div>
</div><p>
<a class="anchor" name="f12d85799764733394802eea55f8095f"></a><!-- doxytag: member="aDatabase::uid" ref="f12d85799764733394802eea55f8095f" args="(int otype)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Q_ULLONG aDatabase::uid           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>otype</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Генерирует новый уникальный номер. Эти номера являются невосполнимым ресурсом системы.<p>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>otype</em>&nbsp;</td><td>(in) - тип объекта </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>новый сгенерированный номер </dd></dl>

<p>Перекрестные ссылки <a class="el" href="adatabase_8cpp-source.html#l00320">db()</a>, <a class="el" href="adatabase_8cpp-source.html#l00096">driverName()</a> и <a class="el" href="alog_8cpp-source.html#l00058">aLog::print()</a>.</p>

</div>
</div><p>
<a class="anchor" name="0a537879f7c25da86447c9c351a1f127"></a><!-- doxytag: member="aDatabase::uidType" ref="0a537879f7c25da86447c9c351a1f127" args="(Q_ULLONG uid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int aDatabase::uidType           </td>
          <td>(</td>
          <td class="paramtype">Q_ULLONG&nbsp;</td>
          <td class="paramname"> <em>uid</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Возвращает тип объекта по его идентификатору.<p>
<dl class="see" compact><dt><b>См. также:</b></dt><dd><a class="el" href="classaDatabase.html#f12d85799764733394802eea55f8095f">uid( int otype )</a> </dd></dl>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>uid</em>&nbsp;</td><td>(in) - уникальный идентификатор объекта </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>тип объекта </dd></dl>

<p>Перекрестные ссылки <a class="el" href="adatabase_8cpp-source.html#l00320">db()</a> и <a class="el" href="alog_8cpp-source.html#l00058">aLog::print()</a>.</p>

<p>Используется в <a class="el" href="adocjournal_8cpp-source.html#l00193">aDocJournal::docType()</a>, <a class="el" href="airegister_8cpp-source.html#l00199">aIRegister::GetDocument()</a> и <a class="el" href="aobject_8cpp-source.html#l00693">aObject::select()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ec81c17eabb865b8f008cc7fdb7d8cb6"></a><!-- doxytag: member="aDatabase::table" ref="ec81c17eabb865b8f008cc7fdb7d8cb6" args="(const QString &amp;name=QString::null)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classaDataTable.html">aDataTable</a> * aDatabase::table           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em> = <code>QString::null</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates <a class="el" href="classaDataTable.html" title="Определяет программный интерфейс модели данных...">aDataTable</a> object for browsing and editing sql table in current database. <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>(in) - sql table name. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>newly created object. </dd></dl>

<p>Перекрестные ссылки <a class="el" href="adatabase_8cpp-source.html#l00605">tableExists()</a>.</p>

<p>Используется в <a class="el" href="aobject_8cpp-source.html#l00240">aObject::tableInsert()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f9e9961fa54f1a2ab2af12b91214494f"></a><!-- doxytag: member="aDatabase::tableExists" ref="f9e9961fa54f1a2ab2af12b91214494f" args="(const QString &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool aDatabase::tableExists           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Проверяет, существует ли таблица в базе данных.<p>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>(in) - имя проверяемой таблицы </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>true, если таблица существует </dd></dl>

<p>Перекрестные ссылки <a class="el" href="adatabase_8cpp-source.html#l00320">db()</a>.</p>

<p>Используется в <a class="el" href="adatabase_8cpp-source.html#l00416">table()</a>.</p>

</div>
</div><p>
<a class="anchor" name="95830f0d5560055b291a33b47af87d34"></a><!-- doxytag: member="aDatabase::markDeleted" ref="95830f0d5560055b291a33b47af87d34" args="(Q_ULLONG uid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void aDatabase::markDeleted           </td>
          <td>(</td>
          <td class="paramtype">Q_ULLONG&nbsp;</td>
          <td class="paramname"> <em>uid</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Устанавливает флаг удаления в true в системной таблице для заданного <em>uid</em> <p>
<dl class="see" compact><dt><b>См. также:</b></dt><dd><a class="el" href="classaDatabase.html#88e04b3a0adc3aaa17cd160537eefe1c">deleteMarked()</a> </dd></dl>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>uid</em>&nbsp;</td><td>- id для пометки на удаление </td></tr>
  </table>
</dl>

<p>Перекрестные ссылки <a class="el" href="adatabase_8cpp-source.html#l00320">db()</a>.</p>

<p>Используется в <a class="el" href="adocument_8cpp-source.html#l00938">aDocument::Copy()</a>, <a class="el" href="aobject_8cpp-source.html#l00563">aObject::Delete()</a>, <a class="el" href="adocument_8cpp-source.html#l00423">aDocument::Delete()</a>, <a class="el" href="adocjournal_8cpp-source.html#l00241">aDocJournal::deleteDocument()</a>, <a class="el" href="adocument_8cpp-source.html#l00313">aDocument::New()</a> и <a class="el" href="adocument_8cpp-source.html#l00465">aDocument::TableDelete()</a>.</p>

</div>
</div><p>
<a class="anchor" name="88e04b3a0adc3aaa17cd160537eefe1c"></a><!-- doxytag: member="aDatabase::deleteMarked" ref="88e04b3a0adc3aaa17cd160537eefe1c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void aDatabase::deleteMarked           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Удаляет все помеченные записи.<p>
<dl class="see" compact><dt><b>См. также:</b></dt><dd><a class="el" href="classaDatabase.html#95830f0d5560055b291a33b47af87d34">markDeleted(Q_ULLONG uid)</a> </dd></dl>

<p>Перекрестные ссылки <a class="el" href="adatabase_8cpp-source.html#l00320">db()</a>.</p>

</div>
</div><p>
<a class="anchor" name="55ae2b25d5fcee79947c55fa15eeb19a"></a><!-- doxytag: member="aDatabase::driverName" ref="55ae2b25d5fcee79947c55fa15eeb19a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString aDatabase::driverName           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Возвращает имя драйвера базы данных. Переводит имя для драйвера MySQL с поддержкой utf8 в стандартное имя.<p>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>имя драйвера.</dd></dl>
Возвращает имя драйвера базы данных. Переводит имя для драйвера MySQL с поддержкой utf8 в стандартное имя.<p>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>имя драйвера. </dd></dl>

<p>Перекрестные ссылки <a class="el" href="adatabase_8cpp-source.html#l00320">db()</a>.</p>

<p>Используется в <a class="el" href="adatabase_8cpp-source.html#l00180">init()</a>, <a class="el" href="adatabase_8cpp-source.html#l00235">prepareDatabaseConnect()</a> и <a class="el" href="adatabase_8cpp-source.html#l00539">uid()</a>.</p>

</div>
</div><p>
<a class="anchor" name="4d8c747db27bc4cf445363c2066f3a06"></a><!-- doxytag: member="aDatabase::getUniqueIndices" ref="4d8c747db27bc4cf445363c2066f3a06" args="(const QString &amp;flddef)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QStringList aDatabase::getUniqueIndices           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>flddefs</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
getUniqueIndices procedure parses table definition and returns list of string in form 'U'&lt;num&gt;'1('&lt;field-list&gt;')' Syntax of index field of table definition is extended to allow using of multicolumn indices. For each multicolumn index column 'U'&lt;num&gt; character sequence should be added to index field of column definition, where &lt;num&gt; is a number of multicolumn index. Example: Definition "a c 20 * pu1,b c 30 * iu1,c d * * u2,d n 10 3 u2" leads to creation of two multicolumn indices: (a,b) and (c,d). <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>flddefs</em>&nbsp;</td><td>(in) - database table definition </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>list of string in form 'U'&lt;num&gt;'1('&lt;field-list&gt;')'</dd></dl>
returned strings can be easily used to create SQL-query for index creation as follows: query="create unique index "+tablename+"_uniq_"+retval.arg(" on "+tablename)<p>
getUniqueIndices procedure parses table definition and returns list of string in form 'U'&lt;num&gt;'1('&lt;field-list&gt;')' Syntax of index field of table definition is extended to allow using of multicolumn indices. For each multicolumn index column 'U'&lt;num&gt; character sequence should be added to index field of column definition, where &lt;num&gt; is a number of multicolumn index. Example: Definition "a c 20 * pu1,b c 30 * iu1,c d * * u2,d n 10 3 u2" leads to creation of two multicolumn indices: (a,b) and (c,d). <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>flddefs</em>&nbsp;</td><td>(in) - database table definition </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>list of string in form 'U'&lt;num&gt;'1('&lt;field-list&gt;')'</dd></dl>
returned strings can be easily used to create SQL-query for index creation as follows: query="create unique index "+tablename+"_uniq_"+retval.arg(" on "+tablename) 
</div>
</div><p>
<a class="anchor" name="bdfb897e092d8a473d828ec6edcb940b"></a><!-- doxytag: member="aDatabase::tableDbName" ref="bdfb897e092d8a473d828ec6edcb940b" args="(aCfg &amp;md, aCfgItem context, long *tid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString aDatabase::tableDbName           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classaCfg.html">aCfg</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>md</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">aCfgItem&nbsp;</td>
          <td class="paramname"> <em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long *&nbsp;</td>
          <td class="paramname"> <em>tid</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Возвращает имя sql таблицы для объекта метаданных.<p>
<dl class="see" compact><dt><b>См. также:</b></dt><dd><a class="el" href="classaDatabase.html#bdfb897e092d8a473d828ec6edcb940b">tableDbName( aCfg &amp;md, aCfgItem context, long * tid )</a> </dd></dl>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>md</em>&nbsp;</td><td>(in) - дерево метаданных. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>(in) - объект метаданных </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>tid</em>&nbsp;</td><td>(out) - идентификатор объекта метаданных, которому принадлежит таблица </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>имя таблицы в базе данных </dd></dl>

<p>Перекрестные ссылки <a class="el" href="acfg_8cpp-source.html#l01220">aCfg::id()</a>, <a class="el" href="acfg_8cpp-source.html#l00937">aCfg::objClass()</a> и <a class="el" href="acfg_8cpp-source.html#l00752">aCfg::parent()</a>.</p>

<p>Используется в <a class="el" href="airegister_8cpp-source.html#l00317">aIRegister::deleteDocument()</a>, <a class="el" href="airegister_8cpp-source.html#l00361">aIRegister::deleteTable()</a>, <a class="el" href="airegister_8cpp-source.html#l00114">aIRegister::initObject()</a>, <a class="el" href="adocument_8cpp-source.html#l00155">aDocument::initObject()</a>, <a class="el" href="adocjournal_8cpp-source.html#l00107">aDocJournal::initObject()</a>, <a class="el" href="acatalogue_8cpp-source.html#l01130">aCatGroup::initObject()</a>, <a class="el" href="acatalogue_8cpp-source.html#l00073">aCatalogue::initObject()</a>, <a class="el" href="aaregister_8cpp-source.html#l00111">aARegister::initObject()</a>, <a class="el" href="aextsql_8cpp-source.html#l00417">aExtSQL::SqlTableName()</a> и <a class="el" href="adatabase_8cpp-source.html#l00441">tableDbName()</a>.</p>

</div>
</div><p>
<a class="anchor" name="2921cadc121d341e8e0267890790d581"></a><!-- doxytag: member="aDatabase::tableDbName" ref="2921cadc121d341e8e0267890790d581" args="(aCfg &amp;md, aCfgItem context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString aDatabase::tableDbName           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classaCfg.html">aCfg</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>md</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">aCfgItem&nbsp;</td>
          <td class="paramname"> <em>context</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Вспомогательный метод. Возвращает имя sql таблицы для объекта метаданных.<p>
<dl class="see" compact><dt><b>См. также:</b></dt><dd><a class="el" href="classaDatabase.html#bdfb897e092d8a473d828ec6edcb940b">tableDbName( aCfg &amp;md, aCfgItem context, long * tid )</a> </dd></dl>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>md</em>&nbsp;</td><td>(in) - дерево метаданных. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>(in) - объект метаданных </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>имя таблицы в базе данных </dd></dl>

<p>Перекрестные ссылки <a class="el" href="adatabase_8cpp-source.html#l00461">tableDbName()</a>.</p>

</div>
</div><p>
<hr><h2>Данные класса</h2>
<a class="anchor" name="2a8a58fee86d82ee580b326a8b07a642"></a><!-- doxytag: member="aDatabase::cfg" ref="2a8a58fee86d82ee580b326a8b07a642" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classaCfg.html">aCfg</a> <a class="el" href="classaDatabase.html#2a8a58fee86d82ee580b326a8b07a642">aDatabase::cfg</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Объект для работы с метаданными бизнес схемы Ананаса. 
<p>
метаданные 
<p>Используется в <a class="el" href="aform_8cpp-source.html#l00075">aForm::aForm()</a>, <a class="el" href="aobject_8cpp-source.html#l00089">aObject::aObject()</a>, <a class="el" href="awidget_8cpp-source.html#l00080">aWidget::aWidget()</a>, <a class="el" href="engine_8cpp-source.html#l00114">aObjectsFactory::create()</a>, <a class="el" href="airegister_8cpp-source.html#l00317">aIRegister::deleteDocument()</a>, <a class="el" href="airegister_8cpp-source.html#l00361">aIRegister::deleteTable()</a>, <a class="el" href="wdbtable_8cpp-source.html#l00929">wDBTable::init()</a>, <a class="el" href="engine_8cpp-source.html#l00233">aEngine::init()</a>, <a class="el" href="adatabase_8cpp-source.html#l00148">init()</a>, <a class="el" href="wcatalogeditor_8cpp-source.html#l00104">wCatalogEditor::initCat()</a>, <a class="el" href="wjournal_8cpp-source.html#l00064">wJournal::initObject()</a>, <a class="el" href="awidget_8cpp-source.html#l00187">aWidget::initObject()</a>, <a class="el" href="aobject_8cpp-source.html#l00170">aObject::initObject()</a> и <a class="el" href="adocjournal_8cpp-source.html#l00107">aDocJournal::initObject()</a>.</p>

</div>
</div><p>
<a class="anchor" name="2804e68252ad6e2d23a61e9ac26bf542"></a><!-- doxytag: member="aDatabase::ddb" ref="2804e68252ad6e2d23a61e9ac26bf542" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSqlDatabase* <a class="el" href="classaDatabase.html#2804e68252ad6e2d23a61e9ac26bf542">aDatabase::ddb</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
ссылка на базу данных 
</div>
</div><p>
<hr>Объявления и описания членов классов находятся в файлах:<ul>
<li><a class="el" href="adatabase_8h-source.html">adatabase.h</a><li><a class="el" href="adatabase__old_8h-source.html">adatabase_old.h</a><li>adatabase.cpp<li>adatabase_old.cpp</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Документация по Ananas Library. Последние изменения: Sun Feb 1 21:47:15 2009. Создано системой&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
